import request from '@/utils/request'

export function list(query) {
  return request({
    url: '/api/tbGameConfig',
    method: 'get',
    params: query
  })
}

export function add(query) {
  return request({
    url: '/api/tbGameConfig',
    method: 'post',
    data: query
  })
}

export function update(query) {
  return request({
    url: '/api/tbGameConfig',
    method: 'put',
    data: query
  })
}

export function del(id) {
  return request({
    url: '/api/tbGameConfig/'+id,
    method: 'delete',
  })
}

export function tree(query) {
  return request({
    url: '/api/tree',
    method: 'GET',
    params: query
  })
}
